package com.shangxian.giveithome.service;

import com.shangxian.giveithome.entity.PageableDetails;
import com.shangxian.giveithome.entity.community.Issue;
import com.shangxian.giveithome.entity.community.IssueDetails;
import com.shangxian.giveithome.entity.community.LookArticle;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service
public interface IssueService {

    PageableDetails findAllIssue(Pageable pageable);

    IssueDetails findIssueDetails(Long id,HttpServletRequest request);

    PageableDetails findAllQandAList(Pageable pageable,String screenSearch);

    void issueArticle(Issue issue, HttpServletRequest request);

    void lookArticle(LookArticle lookArticle, HttpServletRequest request);

    PageableDetails findUserIssueList(Pageable pageable,Long id,HttpServletRequest request);

    PageableDetails findAllAttentionUserIssueList(Pageable pageable,HttpServletRequest request);

    void deleteArticle(Long id);
}
